<template>
  <div class="carousel">
    <el-carousel trigger="click" height="450px" :interval="2000">
      <el-carousel-item v-for="(item,index) in imgList" :key="index">
        <img :src="item.url"/>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        name: "carousel",
        imgList: [
          {
            url: require('../../common/img/login/img01.png')
          },
          {
            url: require('../../common/img/login/img03.png')
          },
          {
            url: require('../../common/img/login/img03.png')
          },
          {
            url: require('../../common/img/login/img03.png')
          }
        ]
      }
    }
  }
</script>

<style scoped>
  img {
    width: 1080px;
  }
</style>
